package com.ruoyi.bookkeeping.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 分类对象 book_sort
 * 
 * @author ruoyi
 * @date 2023-02-24
 */
@Data
@ApiModel("用户对象")
public class BookSort
{
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("分类id")
    @TableId(type = IdType.AUTO)
    private Long sortId;

    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("分类名称")
    @Excel(name = "分类名称")
    private String sortName;

    @ApiModelProperty("删除标志(0正常,2删除)")
    @TableLogic(value = "0",delval = "2")
    private String delFlag;

    @ApiModelProperty("创建者")
    private String createBy;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("更新者")
    private String updateBy;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @ApiModelProperty("备注")
    private String remark;

}
